package org.example.aaaatest.a2;


import com.alibaba.common.lang.StringUtil;


/**
 * @description:
 * @author: wangbaogui
 * @create: 2025/3/6 16:36
 **/
public class cc {
    public static void main(String[] args) {

        Result result = Result.success("chengg");
        Result result3 = Result.success("操作成功");
        Result result44 = Result.success("操作失败，司机操作非当前服务订单");
        System.out.println("result44 = " + result44);
        System.out.println("result3 = " + result3);
        Result<ResultCode> result1 = Result.success(ResultCode.create("SUCCESS", "推动状态失败"));
        System.out.println(BaseResultCode.SUCCESS.equals(result1.getResultCode()));
        ResultCode success = BaseResultCode.SUCCESS;
        boolean success1 = result1.isSuccess();
        System.out.println(success1);
        System.out.println(success);
        System.out.println(result1);
        System.out.println("success1 = " + result);

        System.out.println(result3);
        System.out.println("===============");
        String desc = result1.getData().getDesc();
        System.out.println("desc = " + desc);

        Result<Object> error = Result.error(BaseResultCode.FAIL);
        System.out.println("error = " + error);

        StringUtil.isBlank(desc);

    }
}
